package edu.sctu.zhoudie.mouth201505.day20150503;

/**
 * Created by user08 on 2015/5/3.
 */
public class Client {
    public void print(Message array[]) {
        for (int i = 0; i < 2; i++) {
            System.out.println(array[i].name);
            System.out.println(array[i].sex);
            System.out.println(array[i].age);
        }

    }

    public static void main(String[] args) {
        Message array1 = new Message("周蝶一号", 18, "女");
        Message array2 = new Message("周蝶二号", 20, "女");
        Message array3 = new Message("周蝶三号", 20, "女");
        Message[] array = {array1, array2, array3};
        new Client().print(array);

    }
}
